package mvc.model;

import java.io.Serializable;
import java.util.Observable;

public class Point extends Observable implements Serializable{

private double x,y;

public Point(double xcoord, double ycoord){
	 x = xcoord;
	 y = ycoord;
}

public double getX() {
	return x;
}

public double getY() {
	return y;
}

public void setX(double x) {
	this.x = x;
	setChanged(); // Something was changed
	notifyObservers(); // Tell everybody who is listening (e.g. the GUI!)
}

public void setY(double y) {
	this.y = y;
	
}

public Point(){
	x = 0;
	y = 0;
}


}
